module.exports = {
    configureWebpack: {
        resolve: { extensions: [".ts", ".tsx", ".js"] },
        module: {
            rules: [
                {
                    test: /\.tsx?$/,
                    loader: 'ts-loader',
                    exclude: /node_modules/,
                    options: {
                        appendTsSuffixTo: [/\.vue$/],
                    }
                }
            ]
        }
    },
    devServer: {
        proxy: {
            '/aa/*': {
                target: 'http://ttapi.research.itcast.cn/',
                changeOrigin: true, // 跨域
            }
        },
        port: 9090, // 端口
    }
}